package org.jeecg.modules.tiger.warn.service.impl;

import org.jeecg.common.constant.CacheConstant;
import org.jeecg.modules.tiger.warn.entity.TigerWarnCode;
import org.jeecg.modules.tiger.warn.mapper.TigerWarnCodeMapper;
import org.jeecg.modules.tiger.warn.service.ITigerWarnCodeService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 报警类型编码
 * @Author: jeecg-boot
 * @Date:   2022-11-13
 * @Version: V1.0
 */
@Service
public class TigerWarnCodeServiceImpl extends ServiceImpl<TigerWarnCodeMapper, TigerWarnCode> implements ITigerWarnCodeService {


    @Override
    @Cacheable(value = CacheConstant.DEVICE_WANRING_RULES)
    public List<TigerWarnCode> getAllWarningsRules() {
        return this.list();
    }
}
